package instruction;

import java.io.Serializable;

public class Register implements Serializable {

    private String password=null;
    private String mail=null;
    private String account=null;
    int flag=0;

    public Register(String password, String mail, String account) {
        this.password = password;
        this.mail = mail;
        this.account= account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "Register{" +
                "password='" + password + '\'' +
                ", mail='" + mail + '\'' +
                ", account='" + account + '\'' +
                ", flag=" + flag +
                '}';
    }
}

